package entity;

import java.math.BigDecimal;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Onligne entity.
 *
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "onligne", schema = "public")
public class Onligne implements java.io.Serializable {

    // Fields
    private OnligneId id;
    private String date;
    private boolean utilise;
    private Integer typeweb;

    // Constructors
    /**
     * default constructor
     */
    public Onligne() {
    }

    /**
     * minimal constructor
     */
    public Onligne(OnligneId id) {
        this.id = id;
    }

    /**
     * full constructor
     */
    public Onligne(OnligneId id, String date, Integer typeweb) {
        this.id = id;
        this.date = date;
        this.typeweb = typeweb;
    }

    // Property accessors
    @EmbeddedId
    @AttributeOverrides({
        @AttributeOverride(name = "idorder", column =
                @Column(name = "idorder", nullable = false, precision = 131089, scale = 0)),
        @AttributeOverride(name = "numeroSerie", column =
                @Column(name = "numero_serie", nullable = false))})
    public OnligneId getId() {
        return this.id;
    }

    public void setId(OnligneId id) {
        this.id = id;
    }

    @Column(name = "date")
    public String getDate() {
        return this.date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    @Column(name = "typeweb", precision = 131089, scale = 0)
    public Integer getTypeweb() {
        return this.typeweb;
    }

    public void setTypeweb(Integer typeweb) {
        this.typeweb = typeweb; 
            
    }

    @Column(name = "utilise")
    public boolean isUtilise() {
        return utilise;
    }

    public void setUtilise(boolean utilise) {
        this.utilise = utilise;
    }
}